#pragma once
#include <Windows.h>
#include <stdlib.h>
#include <tchar.h>
class CGameTime
{
private:
	// private constructor & methods
	CGameTime(void);
	// private variables
	INT64 m_lastTime;
	INT64 m_currentTime;
	INT64 m_countPerSecond;
	INT64 m_deltaTime;
	bool m_perFreq;
	UINT m_numFrames;
	float m_timeFactor;
	float m_fps;
	static CGameTime* m_instance;
public:
	static CGameTime* GetInstance();
	void Update(float fpsLimit);
	float GetFPS();
	~CGameTime(void);
};

